<%@page import="cz.acies.data.dao.UserLoginDAO"%>
<%@ page import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="cz.acies.data.persist.*"%>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
String theme = "metro-orange";

Map<String, Object> map = new HashMap<String, Object>();
map.put("userName", "jarda");
map.put("userPassword", "j.Dyt68");

UserLoginDAO dao = new UserLoginDAO();
UserLogin login = dao.doLoad("jarda", "j.Dyt68"); 
//new UserLogin(null, map);
request.setAttribute("login", login);
%>

<!DOCTYPE html>
<html>
<head>
	<base href="<%=basePath%>">
	<title></title>
	
	<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=9" />
	
	<link rel="stylesheet" type="text/css" href="<%=path%>/libs/themes/<%=theme%>/easyui.css">
	<link rel="stylesheet" type="text/css" href="<%=path%>/libs/themes/icon.css">

	<script src="<%=path%>/libs/jquery-1.9.1.js"></script>
	<script src="<%=path%>/libs/jquery.json-2.4.js"></script>
	<script src="<%=path%>/libs/jquery.easyui.min.js"></script>
	<script src="<%=path%>/libs/aciea.utils.js"></script>
</head>

<body>
	<p><c:out value="${login.userName}" /></p>
	<p><c:out value="${login.userPassword}" /></p>
	<c:if test="${param.p != null}">
	    <c:out value="${param.p}" />
	</c:if>	
</body>
</html>
